import React from "react";

export default class Child extends React.Component{
    shouldComponentUpdate(nextProps,nextState){
        if(nextProps===this.props.num){
            return false;
        }
        return false;
    }
    render(){
        console.log("parent->render")
        return(
            <div>
                Child:{this.props.num}
            </div>
        )
    }
}